package io.geekidea.boot.outboundBenhavior.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *
 */

@Data
@Schema(description = "查询结果")
public class OutboundBenhaviorVo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type = IdType.AUTO)
    @Schema(description = "主键")
    private Integer id;

    @TableField("outben")
    @Schema(description = "出库行为")
    private String outben;

    @TableField("state")
    @TableLogic(value = "0",delval = "1")
    @Schema(description = "状态")
    private Boolean state;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8",shape = JsonFormat.Shape.STRING)
    @TableField("createtime")
    @Schema(description = "创建时间")
    private LocalDateTime createtime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8",shape = JsonFormat.Shape.STRING)
    @TableField("modifytime")
    @Schema(description = "修改时间")
    private LocalDateTime modifytime;

    @TableField("deleted")
    @Schema(description = "逻辑删除")
    private Boolean deleted;
}
